<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
    <head><meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'><meta name='description' content='给Discuz加上国际化功能 Discuz是国内一个比较成熟的开源论坛系统，可惜的是不支持国际化语言支持 下载安装包 到官方下载最新的安装包，强烈'>
<title>给Discuz加上国际化功能</title>

<link rel='canonical' href='/p/%E7%BB%99discuz%E5%8A%A0%E4%B8%8A%E5%9B%BD%E9%99%85%E5%8C%96%E5%8A%9F%E8%83%BD/'>

<link rel="stylesheet" href="/scss/style.min.56b4b4efdee21dd7cd9a6ec6cdb1882f71985765df9c7591a90716c58b48f4c5.css"><meta property='og:title' content='给Discuz加上国际化功能'>
<meta property='og:description' content='给Discuz加上国际化功能 Discuz是国内一个比较成熟的开源论坛系统，可惜的是不支持国际化语言支持 下载安装包 到官方下载最新的安装包，强烈'>
<meta property='og:url' content='/p/%E7%BB%99discuz%E5%8A%A0%E4%B8%8A%E5%9B%BD%E9%99%85%E5%8C%96%E5%8A%9F%E8%83%BD/'>
<meta property='og:site_name' content='良宏'>
<meta property='og:type' content='article'><meta property='article:section' content='Post' /><meta property='article:tag' content='Discuz' /><meta property='article:tag' content='PHP' /><meta property='article:published_time' content='2014-11-17T18:54:47&#43;08:00'/><meta property='article:modified_time' content='2014-11-17T18:54:47&#43;08:00'/>
<meta name="twitter:title" content="给Discuz加上国际化功能">
<meta name="twitter:description" content="给Discuz加上国际化功能 Discuz是国内一个比较成熟的开源论坛系统，可惜的是不支持国际化语言支持 下载安装包 到官方下载最新的安装包，强烈">
    </head>
    <body class="
    article-page
    ">
    <script>
        (function() {
            const colorSchemeKey = 'StackColorScheme';
            if(!localStorage.getItem(colorSchemeKey)){
                localStorage.setItem(colorSchemeKey, "auto");
            }
        })();
    </script><script>
    (function() {
        const colorSchemeKey = 'StackColorScheme';
        const colorSchemeItem = localStorage.getItem(colorSchemeKey);
        const supportDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches === true;

        if (colorSchemeItem == 'dark' || colorSchemeItem === 'auto' && supportDarkMode) {
            

            document.documentElement.dataset.scheme = 'dark';
        } else {
            document.documentElement.dataset.scheme = 'light';
        }
    })();
</script>
<div class="container main-container flex on-phone--column extended"><aside class="sidebar left-sidebar sticky ">
    <button class="hamburger hamburger--spin" type="button" id="toggle-menu" aria-label="切换菜单">
        <span class="hamburger-box">
            <span class="hamburger-inner"></span>
        </span>
    </button>

    <header>
        
            
            <figure class="site-avatar">
                <a href="/">
                
                    
                    
                    
                        
                        <img src="/img/wx_150x150_hub08581134c092243b209205c3073808c_6075_300x0_resize_q75_box.jpeg" width="300"
                            height="300" class="site-logo" loading="lazy" alt="Avatar">
                    
                
                </a>
                
                    <span class="emoji">🍥</span>
                
            </figure>
            
        
        
        <div class="site-meta">
            <h1 class="site-name"><a href="/">良宏</a></h1>
            <h2 class="site-description">好好学习，天天向上。</h2>
        </div>
    </header><ol class="menu" id="main-menu">
        
        
        
        <li >
            <a href='/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-home" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <polyline points="5 12 3 12 12 3 21 12 19 12" />
  <path d="M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7" />
  <path d="M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6" />
</svg>



                
                <span>Home</span>
            </a>
        </li>
        
        
        <li >
            <a href='/about/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-user" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="7" r="4" />
  <path d="M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2" />
</svg>



                
                <span>About</span>
            </a>
        </li>
        
        
        <li >
            <a href='/archives/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-archive" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <rect x="3" y="4" width="18" height="4" rx="2" />
  <path d="M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10" />
  <line x1="10" y1="12" x2="14" y2="12" />
</svg>



                
                <span>Archives</span>
            </a>
        </li>
        
        
        <li >
            <a href='/search/' >
                
                
                
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="10" cy="10" r="7" />
  <line x1="21" y1="21" x2="15" y2="15" />
</svg>



                
                <span>Search</span>
            </a>
        </li>
        

        <div class="menu-bottom-section">
            
            
                <li id="dark-mode-toggle">
                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-left" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="8" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-toggle-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="16" cy="12" r="2" />
  <rect x="2" y="6" width="20" height="12" rx="6" />
</svg>



                    <span>暗色模式</span>
                </li>
            
        </div>
    </ol>
</aside>

    

            <main class="main full-width">
    <article class="main-article">
    <header class="article-header">

    <div class="article-details">
    
    <header class="article-category">
        
            <a href="/categories/tech/" style="background-color: blueviolet; color: #fff;">
                Tech
            </a>
        
    </header>
    

    <div class="article-title-wrapper">
        <h2 class="article-title">
            <a href="/p/%E7%BB%99discuz%E5%8A%A0%E4%B8%8A%E5%9B%BD%E9%99%85%E5%8C%96%E5%8A%9F%E8%83%BD/">给Discuz加上国际化功能</a>
        </h2>
    
        
    </div>

    
    
    
    
    <footer class="article-time">
        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-calendar-time" width="56" height="56" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <path d="M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4" />
  <circle cx="18" cy="18" r="4" />
  <path d="M15 3v4" />
  <path d="M7 3v4" />
  <path d="M3 11h16" />
  <path d="M18 16.496v1.504l1 1" />
</svg>
                <time class="article-time--published">Nov 17, 2014</time>
            </div>
        

        
            <div>
                <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clock" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z"/>
  <circle cx="12" cy="12" r="9" />
  <polyline points="12 7 12 12 15 15" />
</svg>



                <time class="article-time--reading">
                    阅读时长: 3 分钟
                </time>
            </div>
        
    </footer>
    

    
</div>

</header>

    <section class="article-content">
    
    
    <h1 id="给discuz加上国际化功能">给Discuz加上国际化功能</h1>
<p>Discuz是国内一个比较成熟的开源论坛系统，可惜的是不支持国际化语言支持</p>
<h3 id="下载安装包">下载安装包</h3>
<p>到<a class="link" href="http://download.comsenz.com/DiscuzX/3.2/Discuz_X3.2_SC_UTF8.zip"  target="_blank" rel="noopener"
    >官方下载</a>最新的安装包，强烈建议使用UTF8编码包。不需要安装。</p>
<h3 id="统一替换路径">统一替换路径</h3>
<p>在discuz/source/plugin/目录中查找 &ldquo;&lsquo;source/language/&rdquo;
在2014.11.14下载的官方安装包中共有四处，替换为 &ldquo;&rsquo;./source/language/&rdquo;
该步骤是因为源代码的写法不统一，此处替换为方便后面的一次性替换所有</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-console" data-lang="console"><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/discuz/source/plugin/qqconnect/install.php:166行
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/discuz/source/plugin/qqconnect/upgrade.php:129行
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/discuz/source/plugin/security/install.php:76行
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/discuz/source/plugin/security/upgrade.php:56行
</span></span></span></code></pre></div><h3 id="全局替换语言包路径">全局替换语言包路径</h3>
<p>全局查找 &ldquo;&rsquo;./source/language/&rdquo; 替换为 &ldquo;LANGUAGE_PATH.&rsquo;&rdquo;</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-console" data-lang="console"><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/class/optimizer/optimizer_setting.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/function/function_core.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/language/lang_admincp.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/module/misc/misc_mobile.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/plugin/manyou/Service/Server/Security.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/plugin/qqconnect/install.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/plugin/qqconnect/upgrade.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/plugin/security/install.php
</span></span></span><span class="line"><span class="cl"><span class="go">/media/lee/DATA/www/test/Discuz/upload/source/plugin/security/upgrade.php
</span></span></span><span class="line"><span class="cl"><span class="go">11 matches across 9 files
</span></span></span></code></pre></div><p>替换完毕之后保存全部</p>
<h3 id="修改全局配置定义语言包路径">修改全局配置定义语言包路径</h3>
<p>在src/install/include/install_function.php的618行后添加如下代码</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-php" data-lang="php"><span class="line"><span class="cl"><span class="nv">$lang</span> <span class="o">=</span> <span class="s">&lt;&lt;&lt;</span><span class="dl">EOT</span><span class="s">
</span></span></span><span class="line"><span class="cl"><span class="s">
</span></span></span><span class="line"><span class="cl"><span class="s">
</span></span></span><span class="line"><span class="cl"><span class="s">/**
</span></span></span><span class="line"><span class="cl"><span class="s">*      [DiscuzX3.2] Language Internationalized.
</span></span></span><span class="line"><span class="cl"><span class="s">*      By clh021@gmail.com
</span></span></span><span class="line"><span class="cl"><span class="s">*/
</span></span></span><span class="line"><span class="cl"><span class="s">//------------  Language Internationalized  [BEGIN] -----------
</span></span></span><span class="line"><span class="cl"><span class="s">if(!function_exists(&#39;DectLang&#39;)) {
</span></span></span><span class="line"><span class="cl"><span class="s">function DectLang(){
</span></span></span><span class="line"><span class="cl"><span class="s">$language = explode(&#34;,&#34;, $_SERVER[&#34;HTTP_ACCEPT_LANGUAGE&#34;]);
</span></span></span><span class="line"><span class="cl"><span class="s">array_key_exists(&#34;language&#34;, $_COOKIE) &amp;&amp; $language = $_COOKIE[&#39;language&#39;];
</span></span></span><span class="line"><span class="cl"><span class="s">array_key_exists(&#34;language&#34;, $_GET) &amp;&amp; $language = $_GET[&#39;language&#39;];
</span></span></span><span class="line"><span class="cl"><span class="s">$language = $language ? $language : &#39;zh-CN&#39;;
</span></span></span><span class="line"><span class="cl"><span class="s">$language = file_exists(DISCUZ_ROOT.&#39;./source/language/&#39;.$language) ? $language : &#39;zh-CN&#39;;
</span></span></span><span class="line"><span class="cl"><span class="s">setcookie(&#39;language&#39;, $language, time() + 3600 * 24 * 365);
</span></span></span><span class="line"><span class="cl"><span class="s">return $language;
</span></span></span><span class="line"><span class="cl"><span class="s">}
</span></span></span><span class="line"><span class="cl"><span class="s">define(&#39;LANGUAGE&#39;, DectLang());
</span></span></span><span class="line"><span class="cl"><span class="s">define(&#39;LANGUAGE_PATH&#39;, &#39;./source/language/&#39;.LANGUAGE.&#39;/&#39;);
</span></span></span><span class="line"><span class="cl"><span class="s">}
</span></span></span><span class="line"><span class="cl"><span class="s">//------------  Language Internationalized  [END] -----------
</span></span></span><span class="line"><span class="cl"><span class="s"></span><span class="dl">EOT</span><span class="p">;</span>
</span></span><span class="line"><span class="cl"><span class="nv">$content</span> <span class="o">.=</span> <span class="nv">$lang</span><span class="p">;</span>
</span></span></code></pre></div><h3 id="安装语言包">安装语言包</h3>
<ul>
<li>将discuz/source/language/<em>下的全部文件移动到discuz/source/language/zh-CN/</em>
现在已经支持国际化中文语言(&ldquo;zh-CN&quot;来自于浏览器语言编码的提取)</li>
<li>将zh-CN 复制两份，分别命名为 zh-TW,en-US</li>
<li>分别翻译好下列文件及后面的对应的提示值，以查看最终语言切换的效果</li>
</ul>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-console" data-lang="console"><span class="line"><span class="cl"><span class="gp">#</span>discuz/source/language/zh-CN/forum/lang_template.php
</span></span><span class="line"><span class="cl"><span class="gp">#</span>可以不用翻译
</span></span><span class="line"><span class="cl"><span class="gp">#</span>discuz/source/language/zh-TW/forum/lang_template.php
</span></span><span class="line"><span class="cl"><span class="go">welcome_new_members -&gt; 歡迎新會員
</span></span></span><span class="line"><span class="cl"><span class="go"></span><span class="gp">#</span>discuz/source/language/en-US/forum/lang_template.php
</span></span><span class="line"><span class="cl"><span class="go">welcome_new_members -&gt; Welcome new members
</span></span></span></code></pre></div><h3 id="在页面中添加语言切换链接">在页面中添加语言切换链接</h3>
<p>discuz/template/default/common/header.htm 第64行  也是以下代码</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="c">&lt;!--{/loop}--&gt;</span>
</span></span><span class="line"><span class="cl"><span class="c">&lt;!--{hook/global_cpnav_extra1}--&gt;</span>
</span></span></code></pre></div><p>之后，添加如下代码(我不擅长前端，你可以随意修改此代码来美化你的页面)</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-html" data-lang="html"><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">&#34;float: right;position: absolute;right: 130px;&#34;</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;forum.php?language=zh-TW&#34;</span><span class="p">&gt;</span>繁体中文<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;forum.php?language=zh-CN&#34;</span><span class="p">&gt;</span>简体中文<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&#34;forum.php?language=en-US&#34;</span><span class="p">&gt;</span>English<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;</span>
</span></span><span class="line"><span class="cl"><span class="p">&lt;/</span><span class="nt">div</span><span class="p">&gt;</span>
</span></span></code></pre></div><p>修改 source/function/function_core.php 第 631行</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-php" data-lang="php"><span class="line"><span class="cl"><span class="nv">$cachefile</span> <span class="o">=</span> <span class="s1">&#39;./data/template/&#39;</span><span class="o">.</span><span class="p">(</span><span class="nx">defined</span><span class="p">(</span><span class="s1">&#39;STYLEID&#39;</span><span class="p">)</span>
</span></span></code></pre></div><p>修改为</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-php" data-lang="php"><span class="line"><span class="cl"><span class="nv">$cachefile</span> <span class="o">=</span> <span class="s1">&#39;./data/template/&#39;</span><span class="o">.</span><span class="nx">LANGUAGE</span><span class="o">.</span><span class="s1">&#39;_&#39;</span><span class="o">.</span><span class="p">(</span><span class="nx">defined</span><span class="p">(</span><span class="s1">&#39;STYLEID&#39;</span><span class="p">)</span>
</span></span></code></pre></div><p>完成</p>

</section>


    <footer class="article-footer">
    
    <section class="article-tags">
        
            <a href="/tags/discuz/">Discuz</a>
        
            <a href="/tags/php/">PHP</a>
        
    </section>


    </footer>


    
</article>

    

    

<aside class="related-content--wrapper">
    <h2 class="section-title">相关文章</h2>
    <div class="related-content">
        <div class="flex article-list--tile">
            
                
<article class="">
    <a href="/p/sha1-from-java-to-php/">
        
        

        <div class="article-details">
            <h2 class="article-title">sha1 from Java to Php</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/eval-php/">
        
        

        <div class="article-details">
            <h2 class="article-title">Eval PHP</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/wordpress%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/">
        
        

        <div class="article-details">
            <h2 class="article-title">WordPress开发笔记</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/wordpress%E7%8E%AF%E5%A2%83%E5%8F%8A%E8%B5%84%E6%96%99%E6%95%B4%E7%90%86/">
        
        

        <div class="article-details">
            <h2 class="article-title">WordPress环境及资料整理</h2>
        </div>
    </a>
</article>

            
                
<article class="">
    <a href="/p/api-doc/">
        
        

        <div class="article-details">
            <h2 class="article-title">API DOC</h2>
        </div>
    </a>
</article>

            
        </div>
    </div>
</aside>

     
    
        
    

    <footer class="site-footer">
    <section class="copyright">
        &copy; 
        
            2021 - 
        
        2023 良宏
    </section>
    <section class="powerby">
        Built with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>,
        主题 <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="3.5.0">Stack</a></b> 由 <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a> 设计
    </section>
</footer>


    
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    
    <div class="pswp__bg"></div>

    
    <div class="pswp__scroll-wrap">

        
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                
                
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"integrity="sha256-ePwmChbbvXbsO02lbM3HoHbSHTHFAeChekF1xKJdleo="crossorigin="anonymous"
                defer
                >
            </script><script 
                src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"integrity="sha256-UKkzOn/w1mBxRmLLGrSeyB4e1xbrp4xylgAWb3M42pU="crossorigin="anonymous"
                defer
                >
            </script><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.min.css"crossorigin="anonymous"
            ><link 
                rel="stylesheet" 
                href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css"crossorigin="anonymous"
            >

            </main>
        </div>
        <script 
                src="https://cdn.jsdelivr.net/npm/node-vibrant@3.1.6/dist/vibrant.min.js"integrity="sha256-awcR2jno4kI5X0zL8ex0vi2z&#43;KMkF24hUW8WePSA9HM="crossorigin="anonymous"
                
                >
            </script><script type="text/javascript" src="/ts/main.js" defer></script><script type="text/javascript" src="/ts/custom.js" defer></script>
<script>
    (function () {
        const customFont = document.createElement('link');
        customFont.href = "https://fonts.font.im/css2?family=Lato:wght@300;400;700&display=swap";

        customFont.type = "text/css";
        customFont.rel = "stylesheet";

        
    }());
</script>


    </body>
</html>
